package community.hospital.service.application;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import community.hospital.common.BaseRemove;
import community.hospital.entity.Role;
import community.hospital.entity.request.ListRoleRequest;
import community.hospital.entity.request.RoleRequest;
import community.hospital.entity.response.RoleResponse;

import java.util.List;


/**
 * @Author：ydj
 * @Date：2023/1/16 21:46
 */

public interface RoleApplicationService {
    /**
     * 新增角色
     * @param request
     * @return
     */
    Boolean addRole(RoleRequest request);

    /**
     * 删除角色
     * @param request
     * @return
     */
    Boolean removeRole(BaseRemove request);

    /**
     * 修改角色
     * @param request
     * @return
     */
    Boolean updateRole(RoleRequest request);

    /**
     * 查询角色列表
     * @param request
     * @return
     */
    Page<RoleResponse> listRole(ListRoleRequest request);

    List<RoleResponse> listAllRole();

}
